// 这是首页的样式
@import"./reset.css";

.type_area {
    width: 7.5rem;
    margin: 0 auto;
}

// 顶部
#wrap {
    height: 1.77rem;
    background-image: linear-gradient(180deg, #FF6040 0%, #FF8A80 100%);


    // 第一条搜索框
    .wrap_top {
        height: 0.9rem;
        display: flex;
        justify-content: space-around;
        align-items: center;

        em {
            font-size: 0.44rem;
            color: #fff;
        }

        img {
            width: 1.82rem;
            height: 0.48rem;
        }

        input {
            width: 3.4rem;
            height: 0.64rem;
            background: #FFFFFF;
            border: 0.02rem solid #E6E6E6;
            border-radius: 0.06rem;
            color: #999;
            line-height: .64rem;
            font-size: .28rem;
            padding-left: 0.24rem;
            box-sizing: border-box;
        }
    }

    // 下面的导航栏
    .wrap_nav {
        height: 0.64rem;
        padding-top: 0.2rem;
        justify-content: space-between;
        display: flex;

        ul {
            width: 6rem;
            height: 0.48rem;
            margin-left: 0.2rem;
            display: flex;
            justify-content: space-between;

            .active {
                a {
                    font-size: .32rem;
                    font-weight: bold;
                }
            }

            li {
                width: 0.7rem;
                height: 0.48rem;
                line-height: 0.48rem;

                a {
                    font-size: 0.26rem;
                    color: #fff;

                    &:hover {
                        font-size: .32rem;
                        font-weight: bold;
                    }
                }
            }
        }

        .nav_right {
            height: 0.64rem;
            // padding-top: 0.2rem;
            // width: 0.7rem;
            height: 0.48rem;
            line-height: 0.48rem;
            font-size: 0.26rem;
            color: #fff;
            margin-right: 0.15rem;
        }
    }
}

// 轮播图
#banner {
    width: 7.1rem;
    height: 3.98rem;
    margin-top: 0.2rem;
    box-shadow: 0rem 0.14rem 0.338rem 0.042rem rgb(255 131 117 / 50%);
    border-radius: 0.1rem;

    .swiper {
        width: 100%;
        height: 100%;
    }

    .swiper-slide {
        text-align: center;
        font-size: 0.18rem;
        background: #fff;
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

// 四个盒子
#forth {
    display: flex;
    justify-content: space-around;
    margin-top: 0.2rem;

    li {
        text-align: center;

        img {
            width: 0.64rem;
            height: 0.64rem;
        }

        a {
            display: block;
            font-size: 0.2rem;
            font-weight: normal;
            font-stretch: normal;
            line-height: 0.3177rem;
            color: #343434;
        }
    }
}

// 背景图
#bc {
    width: 7.5rem;
    height: 3.5rem;
    background: #f2f2f2;
    padding: 0.2rem;

    // 花的部分
    .flower {
        overflow: hidden;
        width: 3.5rem;
        height: 3.5rem;
        background: url(../image/flower.png)no-repeat 0 0/3.5rem 3.5rem;
        float: left;

        h1 {
            width: 3.3rem;
            height: 0.48rem;
            font-size: 0.32rem;
            color: #85A642;
            margin-top: 0.2rem;
            margin-left: 0.2rem;

            a {
                font-size: 0.2rem;
                color: #333333;
                float: right;
                margin-top: 0.1rem;
                margin-right: 0.26rem;
            }
        }

        p {
            color: #B1CC7A;
            font-size: 0.2rem;
            margin-left: 0.2rem;
            margin-top: 0.1rem;
        }

        .timer {
            display: flex;

            p {
                width: 0.32rem;
                height: 0.36rem;
                text-align: center;
                line-height: 0.36rem;
                background-image: linear-gradient(180deg, #85A642 0%, #B1CC7A 100%);
                color: #fff;
            }

            span {
                color: #B1CC7A;
                font-size: 0.3rem;
            }
        }
    }

    // 右侧的两块
    // 第一块
    .bcr1 {
        width: 3.5rem;
        height: 1.7rem;
        background: url(../image/smallflower.png) no-repeat 0 0/ 3.5rem 1.7rem;
        margin-bottom: 0.1rem;
        overflow: hidden;
        float: right;

        h1 {
            font-size: 0.32rem;
            color: #FF6040;
            margin-top: 0.2rem;
            margin-left: 0.2rem;
        }

        p {
            color: #FF9580;
            font-size: 0.2rem;
            margin-left: 0.2rem;
            margin-top: 0.1rem;
        }

        div {
            background-image: linear-gradient(180deg, #FF6040 0%, #FF9F80 100%);
            display: inline-block;
            line-height: 0.36rem;
            font-size: 0.18rem;
            text-align: center;
            color: #fff;
            margin-top: 0.1rem;
            margin-left: 0.2rem;
            border-radius: 0.04rem 0.24rem 0.24rem 0.04rem;
        }
    }

    // 第二块
    .bcr2 {
        width: 3.5rem;
        height: 1.7rem;
        background: url(../image/smallflower1.png) no-repeat 0 0/ 3.5rem 1.7rem;
        float: right;

        h1 {
            font-size: 0.32rem;
            color: #AF40FF;
            margin-top: 0.2rem;
            margin-left: 0.2rem;
            display: inline-block;
        }

        p {
            color: #CA80FF;
            font-size: 0.2rem;
            margin-left: 0.2rem;
            margin-top: 0.1rem;
        }

        div {
            background-image: linear-gradient(180deg, #AF40FF 0%, #F58CFF 100%);
            display: inline-block;
            line-height: 0.36rem;
            font-size: 0.18rem;
            text-align: center;
            color: #fff;
            margin-top: 0.1rem;
            margin-left: 0.2rem;
            border-radius: 0.04rem 0.24rem 0.24rem 0.04rem;
        }
    }
}

// 双十一
#DoubleEleven {
    width: 7.5rem;
    height: auto;
    padding: 0.2rem;

    .earth {
        width: 100%;
        display: flex;
        justify-content: space-around;

        a {
            font-size: 0.28rem;
            color: #999999;

            &:nth-child(2) {
                font-size: 0.32rem;
                color: #FF6040;
            }
        }
    }

    // 双十一
    .double {
        margin-top: 0.4rem;
        width: 100%;
        height: 1.6rem;

        li {
            float: left;
            margin-right: 0.36rem;

            img {
                width: 1.6rem;
                height: 1.6rem;
            }

            &:last-child {
                margin-right: 0;
            }
        }

        &:nth-child(2) {
            display: none;
        }
    }

    // 热门推荐
    #hotdoor {
        margin-top: 0.5rem;
        display: flex;
        justify-content: space-between;

        li {
            width: 2rem;
            height: 0.4rem;
            background-color: #fff;
            font-size: 0.28rem;
            text-align: center;
            line-height: 0.4rem;
            border-radius: 0.05rem;
            color: #ff6044;
            &:hover{
                cursor: pointer;
            }
        }
    }

    // 手机
    #phone,#phone1,#phone2 {
        width: 100%;
        height: auto;
        margin-top: 0.2rem;
        li {
            box-sizing: border-box;
            padding: 0.3rem 0 0 0.3rem;
            width: 7rem;
            height: 2.5rem;
            margin: 0 auto;
            border: 0.03rem solid #ccc;
            box-shadow: 0.02rem 0.02rem 0.1rem 0.05rem
            rgba(0, 0, 0, 0.3);
            margin-bottom: 0.1rem;
            img {
                width: 1.34rem;
                height: 1.95rem;
                float: left;
                margin-right: 0.3rem;
            }
            p{
                font-size: 0.28rem;
                color: red;
            }
            h2{
                font-size: 0.28rem;
                color: #333333;
            }
            s{
                font-size: 0.28rem;
                color: #999;
            }
            a{
                width: 1.5rem;
                height: 0.4rem;
                background-color: #999999;
                display: block;
                margin-left: 1.63rem;
                font-size: 0.28rem;
                text-align: center;
                line-height: 0.4rem;
                color: #fff;
                background-color: #d46a13;
                margin-top: 0.1rem;
            }
        }
    }
    #phone1{
        display: none;
    }
    #phone2{
        display: none;
    }
}